!!!Strict
%html
  %head
    %title= content_for?(:title) ? yield(:title) : "Untitled"

    = stylesheet_link_tag 'administrator.css'

    / *************************************************************************
    / BluePrint CSS Framework 
    / ************************************************************************* 
    = stylesheet_link_tag 'blueprint/screen.css', :media => 'screen, projection'
    = stylesheet_link_tag 'blueprint/print.css', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'blueprint/ie.css', :media => 'screen, projection'

%body
  .main-container
    - flash.each do |name, msg|
      = content_tag :div, msg, :id => "flash_#{name}"


    %header
      .container
        .column.prepend-10
          - logo = image_tag("logo.png", :alt => "Sample App", :class => "round")
          = link_to logo, admin_admins_path()
  
        %div{:id => 'user_nav'}
          - if current_user
            Logged in as
            = link_to current_user.email, edit_admin_admin_url(current_user)
            |
            = link_to "Sign out", admin_log_out_path
          - else
            = link_to "sign in", admin_log_in_path


    %section.round
      = yield


    %footer
      %hr
      .gray.rigth-align
        Create by ...
